import request from "@/request";

// 获取消息列表
export const _register = (from, code = '') => {
    return request({
        url: "/api/dapp!login.action",
        method: "post",
        loading: true,
        data: {
            from,
            code
        }
    })
};

export const _info = () => {
    return request({
        url: "api/localuser!get.action",
        method: "post",
    })
}


export const customer = () => {
    return request({
        url: "api/syspara!getSyspara.action",
        method: "post",
        data: {
            code: "customer_service_url"
        }
    })
}

export const perpetualContracts = () => { //判断是否X杠杆
    return request({
        url: "api/syspara!getSyspara.action",
        method: "post",
        data: {
            code: "perpetual_contracts"
        }
    })
}

export const _signInApply = () => { //签到接口
    return request({
        url: "api/signin!apply.action?",
        method: "post",
    })
}